package com.woniuxy.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResponseEnum {
    OK(200,"ok"),
    FAIL(201,"fail"),
    ACCOUNT_ERROR(2000,"账号不存在"),
    LOGIN_ERROR(2001,"账号或密码错误"),
    NO_LOGIN(2002,"未登录"),
    SYS_BUSY(2003,"系统繁忙，请稍后重试"),
    SYS_ERROR(2004,"服务器繁忙，请稍后重试"),
    ACCOUNT_EXISTS(2005,"账号已存在"),
    CODE_EXPIRE(2006,"验证码已失效"),
    CODE_ERROR(2007,"验证码错误"),
    OUT_OF_STOCK(2008,"库存不足"),
    KILL_END(2009,"该秒杀活动已结束"),
    KILL_FAIL(2010,"抢购失败"),
    PAID(2011,"已付款"),
    ORDER_CANCELLED(2012,"订单已取消"),
    NO_AUTH(2013,"没有权限"),



    ;

    private Integer code;
    private String msg;
}
